/* 
 * File:   constante_format_execption.h
 * Author: Gab'z
 *
 * Created on 6 mai 2012, 20:06
 */

#ifndef CONSTANTE_FORMAT_EXECPTION_H
#define	CONSTANTE_FORMAT_EXECPTION_H

#include <exception>
#include <string>

class ConstanteFormatException : public std::exception {
    std::string info;
public:

    ConstanteFormatException(const std::string& i) : info("Erreur de parsing. -> " + i) {
    }

    virtual ~ConstanteFormatException()throw ()  {
    }

    const char* what() const throw () {
        return info.c_str();
    }
};

#endif	/* CONSTANTE_FORMAT_EXECPTION_H */

